package com.cb.mapper;

import com.jia.entity.UserEcards;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 王利明
* @description 针对表【t_user_ecards】的数据库操作Mapper
* @createDate 2024-04-29 14:31:37
* @Entity com.cb.pojo.UserEcards
*/
public interface UserEcardsMapper extends BaseMapper<UserEcards> {

    List<UserEcards> findlist(@Param("id") String id);

    @Update("update t_user_ecards set hascount = hascount-1 where uid = #{uid} and eid = #{eid}")
    int updatecount(@Param("eid") Integer eid, @Param("uid") Integer uid);
}




